package com.gitee.giteego.springboot.mavendemo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
public class MavenDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(MavenDemoApplication.class, args);
    }

    /**
     * 娴嬭瘯鎺у埗鍣�
     */
    @RestController
    public class HelloController {

        @RequestMapping("/hello")
        public String hello() {
            return "Hello Spring Boot! 2022.1.20 8.10";
        }
    }

/*
 * test002
 */
@RestController
public class Test002Controller {
    @RequestMapping("/test002")
    public String test002() {
        int x,y,z=0;
        x=0;
        y=1;
        z=y/x;     
        return "0";
    }          
}

}
